package book.dao;

import book.pojo.Book;
import java.util.List;

/**
 * @BelongsProject: JavaWeb
 * @BelongsPackage: book.dao
 * @Author: LiYing
 * @CreateTime: 2020-12-18 13:58
 * @Description:
 */
public interface BookDao {


    public int addBook(Book book);

    public int deleteBookById(Integer id);

    public int updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();


    Integer queryForPageTotalCount();

    List<Book> queryForPageItems(int begin, int pageSize);

    Integer queryForPageTotalCountByPrice(int min, int max);

    List<Book> queryForPageItemsByPrice(int begin, int pageSize, int min, int max);
}
